FROM golang

COPY  src  /go/src/
COPY html       /home/html
COPY static     /home/static


RUN go get -u -v github.com/Go-SQL-Driver/MySQL



ENV APP_HOME /home/
ENV MYSQL_IP 192.168.99.100
ENV MYSQL_PORT 3306
ENV MYSQL_DB goweb
ENV TZ="UTC-08:00"


RUN cd /go/src/goweb/; \
 go build WebServer.go;

EXPOSE 8080

CMD ["/go/src/goweb/WebServer"] 
